<?php

    require_once dirname(dirname(__FILE__)) . '/config/config.php';
    require_once DOCUMENT_ROOT . DIR_SHARED_DAO . 'dao_choice.php';

    /**
     * User: Viet Anh
     * Date: 03/06/2014
     * Time: 23:34
     */
    class api_choice
    {
        public static function save($id, $name)
        {
            $dao_choice = new dao_choice();

            return $dao_choice->save($id, $name);
        }

        public static function delete($id)
        {
            $dao_choice = new dao_choice();

            return $dao_choice->delete($id);
        }

        public static function get_by_id($id)
        {
            $dao_choice = new dao_choice();

            return $dao_choice->get_by_id($id);
        }

        public static function get_all()
        {
            $dao_choice = new dao_choice();

            return $dao_choice->get_all();
        }
    }